// AmISingle namespace
AmISingle = {};

// Scenes
AmISingle.SceneMainName = "main";
AmISingle.SceneFacebookAccountName = "facebookAccount";

// Commands
AmISingle.CommandAdFacebookAcc = "do-facebookAccount";

// Menu
/*AmISingle.MenuAttr = {
	omitDefaultItems: true
};
AmISingle.MenuModel = {
	visible: true,
	items: [
		Mojo.Menu.editItem,
		{
		label: $L("Accounts"),
		command: AmISingle.CommandAdFacebookAcc
		}
	]
};*/

AmISingle.AccessToken = "";

function StageAssistant() {
	/* this is the creator function for your stage assistant object */
}

StageAssistant.prototype.setup = function(){
	/* this function is for setup tasks that have to happen when the stage is first created */
	this.controller.pushScene({
		name: AmISingle.SceneFacebookAccountName
	});
	this.controller.setWindowOrientation("free");
};

StageAssistant.prototype.handleCommand = function(event){
	if (event.type == Mojo.Event.command) {
		switch (event.command) {
			case AmISingle.CommandAdFacebookAcc:
				this.controller.pushScene(AmISingle.SceneFacebookAccountName);
				break;
		}
	}
};